package com.jcl.recruit.console;

import com.jcl.recruit.console.mapper.ConsoleDbCorpMapper;
import com.jcl.recruit.console.model.ConsoleDbCorp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ConsoleDbCorpDao
 * @Author yyliu
 * @Date 2018/12/14 9:59
 * @Version 1.0
 **/
@Component
public class ConsoleDbCorpDao implements ConsoleDbCorpMapper {


    @Autowired
    private ConsoleDbCorpMapper consoleDbCorpMapper;

    @Override
    public List<ConsoleDbCorp> findList(String serverName) {
        return consoleDbCorpMapper.findList(serverName);
    }

    @Override
    public List<Map<String, Object>> findServerNumber() {
        return consoleDbCorpMapper.findServerNumber();
    }

    @Override
    public ConsoleDbCorp getOne() {
        return consoleDbCorpMapper.getOne();
    }

    @Override
    public int batchInsert(List<ConsoleDbCorp> list) {
        return consoleDbCorpMapper.batchInsert(list);
    }

    @Override
    public int updateStatus(String status, Integer id) {
        return consoleDbCorpMapper.updateStatus(status, id);
    }
}
